| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { BaseEndpoint } from './baseEndpoint'; |
||
| 3 | |||
| 4 | /** |
||
| 5 | * Credit Endpoint Class |
||
| 6 | */ |
||
| 7 | export class Credit extends BaseEndpoint { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Get a movie or TV credit details by id. |
||
| 11 | * @return { Promise<CreditsResponse> } |
||
| 12 | * @see https://developers.themoviedb.org/3/credits/get-credit-details |
||
| 13 | */ |
||
| 14 | public async details(creditID: string): Promise<CreditsResponse> { |
||
| 15 | return this.sendGetRequest(`credit/${creditID}`); |
||
| 16 | } |
||
| 19 |